package com.droowa.domain;

import java.io.Serializable;

public class OrderProduct implements Serializable{

	private int id;
	private String fileName;
	private String completeId;
	private String completeName;
	private String completePrice;
	private String mainboardName;
	private String cpuName;
	private String coolerName;
	private String memoryName;
	private String graphicName;
	private String hddName;
	private String ssdName;
	private String dvdName;
	private String soundName;
	private String powerName;
	private String caseName;
	private String osName;
	private String result;
	private String custId;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getCompleteId() {
		return completeId;
	}
	public void setCompleteId(String completeId) {
		this.completeId = completeId;
	}
	public String getCompleteName() {
		return completeName;
	}
	public void setCompleteName(String completeName) {
		this.completeName = completeName;
	}
	public String getCompletePrice() {
		return completePrice;
	}
	public void setCompletePrice(String completePrice) {
		this.completePrice = completePrice;
	}
	public String getMainboardName() {
		return mainboardName;
	}
	public void setMainboardName(String mainboardName) {
		this.mainboardName = mainboardName;
	}
	public String getCpuName() {
		return cpuName;
	}
	public void setCpuName(String cpuName) {
		this.cpuName = cpuName;
	}
	public String getCoolerName() {
		return coolerName;
	}
	public void setCoolerName(String coolerName) {
		this.coolerName = coolerName;
	}
	public String getMemoryName() {
		return memoryName;
	}
	public void setMemoryName(String memoryName) {
		this.memoryName = memoryName;
	}
	public String getGraphicName() {
		return graphicName;
	}
	public void setGraphicName(String graphicName) {
		this.graphicName = graphicName;
	}
	public String getHddName() {
		return hddName;
	}
	public void setHddName(String hddName) {
		this.hddName = hddName;
	}
	public String getSsdName() {
		return ssdName;
	}
	public void setSsdName(String ssdName) {
		this.ssdName = ssdName;
	}
	public String getDvdName() {
		return dvdName;
	}
	public void setDvdName(String dvdName) {
		this.dvdName = dvdName;
	}
	public String getSoundName() {
		return soundName;
	}
	public void setSoundName(String soundName) {
		this.soundName = soundName;
	}
	public String getPowerName() {
		return powerName;
	}
	public void setPowerName(String powerName) {
		this.powerName = powerName;
	}
	public String getCaseName() {
		return caseName;
	}
	public void setCaseName(String caseName) {
		this.caseName = caseName;
	}
	public String getOsName() {
		return osName;
	}
	public void setOsName(String osName) {
		this.osName = osName;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public String getCustId() {
		return custId;
	}
	public void setCustId(String custId) {
		this.custId = custId;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((caseName == null) ? 0 : caseName.hashCode());
		result = prime * result
				+ ((completeId == null) ? 0 : completeId.hashCode());
		result = prime * result
				+ ((completeName == null) ? 0 : completeName.hashCode());
		result = prime * result
				+ ((completePrice == null) ? 0 : completePrice.hashCode());
		result = prime * result
				+ ((coolerName == null) ? 0 : coolerName.hashCode());
		result = prime * result + ((cpuName == null) ? 0 : cpuName.hashCode());
		result = prime * result + ((custId == null) ? 0 : custId.hashCode());
		result = prime * result + ((dvdName == null) ? 0 : dvdName.hashCode());
		result = prime * result
				+ ((fileName == null) ? 0 : fileName.hashCode());
		result = prime * result
				+ ((graphicName == null) ? 0 : graphicName.hashCode());
		result = prime * result + ((hddName == null) ? 0 : hddName.hashCode());
		result = prime * result + id;
		result = prime * result
				+ ((mainboardName == null) ? 0 : mainboardName.hashCode());
		result = prime * result
				+ ((memoryName == null) ? 0 : memoryName.hashCode());
		result = prime * result + ((osName == null) ? 0 : osName.hashCode());
		result = prime * result
				+ ((powerName == null) ? 0 : powerName.hashCode());
		result = prime * result
				+ ((this.result == null) ? 0 : this.result.hashCode());
		result = prime * result
				+ ((soundName == null) ? 0 : soundName.hashCode());
		result = prime * result + ((ssdName == null) ? 0 : ssdName.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrderProduct other = (OrderProduct) obj;
		if (caseName == null) {
			if (other.caseName != null)
				return false;
		} else if (!caseName.equals(other.caseName))
			return false;
		if (completeId == null) {
			if (other.completeId != null)
				return false;
		} else if (!completeId.equals(other.completeId))
			return false;
		if (completeName == null) {
			if (other.completeName != null)
				return false;
		} else if (!completeName.equals(other.completeName))
			return false;
		if (completePrice == null) {
			if (other.completePrice != null)
				return false;
		} else if (!completePrice.equals(other.completePrice))
			return false;
		if (coolerName == null) {
			if (other.coolerName != null)
				return false;
		} else if (!coolerName.equals(other.coolerName))
			return false;
		if (cpuName == null) {
			if (other.cpuName != null)
				return false;
		} else if (!cpuName.equals(other.cpuName))
			return false;
		if (custId == null) {
			if (other.custId != null)
				return false;
		} else if (!custId.equals(other.custId))
			return false;
		if (dvdName == null) {
			if (other.dvdName != null)
				return false;
		} else if (!dvdName.equals(other.dvdName))
			return false;
		if (fileName == null) {
			if (other.fileName != null)
				return false;
		} else if (!fileName.equals(other.fileName))
			return false;
		if (graphicName == null) {
			if (other.graphicName != null)
				return false;
		} else if (!graphicName.equals(other.graphicName))
			return false;
		if (hddName == null) {
			if (other.hddName != null)
				return false;
		} else if (!hddName.equals(other.hddName))
			return false;
		if (id != other.id)
			return false;
		if (mainboardName == null) {
			if (other.mainboardName != null)
				return false;
		} else if (!mainboardName.equals(other.mainboardName))
			return false;
		if (memoryName == null) {
			if (other.memoryName != null)
				return false;
		} else if (!memoryName.equals(other.memoryName))
			return false;
		if (osName == null) {
			if (other.osName != null)
				return false;
		} else if (!osName.equals(other.osName))
			return false;
		if (powerName == null) {
			if (other.powerName != null)
				return false;
		} else if (!powerName.equals(other.powerName))
			return false;
		if (result == null) {
			if (other.result != null)
				return false;
		} else if (!result.equals(other.result))
			return false;
		if (soundName == null) {
			if (other.soundName != null)
				return false;
		} else if (!soundName.equals(other.soundName))
			return false;
		if (ssdName == null) {
			if (other.ssdName != null)
				return false;
		} else if (!ssdName.equals(other.ssdName))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "OrderProduct [id=" + id + ", fileName=" + fileName
				+ ", completeId=" + completeId + ", completeName="
				+ completeName + ", completePrice=" + completePrice
				+ ", mainboardName=" + mainboardName + ", cpuName=" + cpuName
				+ ", coolerName=" + coolerName + ", memoryName=" + memoryName
				+ ", graphicName=" + graphicName + ", hddName=" + hddName
				+ ", ssdName=" + ssdName + ", dvdName=" + dvdName
				+ ", soundName=" + soundName + ", powerName=" + powerName
				+ ", caseName=" + caseName + ", osName=" + osName + ", result="
				+ result + ", custId=" + custId + "]";
	}
	
	
	
	
	
}
